package 序列化;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class fjxulxhw {
    public static void main(String[] args) throws Exception {

        ObjectInputStream objectInputStream =
                new ObjectInputStream(new FileInputStream("day10/src/file/xulxhw.dat"));

        Test test = (Test) objectInputStream.readObject();

        System.out.println(test);

        System.out.println(test.getName());
        System.out.println(test.getAge());
        System.out.println(test.getSex());

        objectInputStream.close();
    }
}
